// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

// 证书分类列表
export function getCertificateCategoryList(data) {
  return request({
    url: 'classification/certificateCategory',
    method: 'get',
    params: data,
  });
}

// 新增或编辑证书分类
export function setCertificateCategory(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 证书分类详情
export function getCertificateCategoryDetail(id) {
  return request({
    url: `classification/certificateCategory/${id}`,
    method: 'get',
  });
}

// 技能分类列表
export function getSkillCategoryList(data) {
  return request({
    url: 'classification/SkillCategory',
    method: 'get',
    params: data,
  });
}

// 新增或编辑技能分类
export function setSkillCategory(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 技能分类详情
export function getSkillCategoryDetail(id) {
  return request({
    url: `classification/skillCategory/${id}`,
    method: 'get',
  });
}

// 证书分类列表（全部）
export function getCertificateCategoryAll() {
  return request({
    url: 'classification/certificateCategoryAll',
    method: 'get',
  });
}

// 技能分类列表（全部）
export function getSkillCategoryAll() {
  return request({
    url: 'classification/skillCategoryAll',
    method: 'get',
  });
}

// 证书列表
export function getCertificateList(data) {
  return request({
    url: 'classification/certificate',
    method: 'get',
    params: data,
  });
}

// 新增或编辑证书
export function setCertificate(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 证书详情
export function getCertificateDetail(id) {
  return request({
    url: `classification/certificate/${id}`,
    method: 'get',
  });
}

// 技能列表
export function getSkillList(data) {
  return request({
    url: 'classification/skill',
    method: 'get',
    params: data,
  });
}

// 新增或编辑技能
export function setSkill(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 技能详情
export function getSkillDetail(id) {
  return request({
    url: `classification/skill/${id}`,
    method: 'get',
  });
}

// 服务分类列表
export function getServiceCategoryList(data) {
  return request({
    url: 'classification/serviceCategory',
    method: 'get',
    params: data,
  });
}

// 新增或编辑服务分类
export function setServiceCategory(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 服务分类详情
export function getServiceCategoryDetail(id) {
  return request({
    url: `classification/serviceCategory/${id}`,
    method: 'get',
  });
}

// 服务分类列表（全部）
export function getServiceCategoryAll() {
  return request({
    url: 'classification/serviceCategoryAll',
    method: 'get',
  });
}

// 服务科目列表
export function getServiceSubjectList(data) {
  return request({
    url: 'classification/serviceSubject',
    method: 'get',
    params: data,
  });
}

// 新增或编辑服务科目
export function setServiceSubject(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 服务科目详情
export function getServiceSubjectDetail(id) {
  return request({
    url: `classification/serviceSubject/${id}`,
    method: 'get',
  });
}

// 技能分类列表
export function getServiceTypeList(data) {
  return request({
    url: 'classification/serviceType',
    method: 'get',
    params: data,
  });
}

// 新增或编辑技能分类
export function setServiceType(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 技能分类详情
export function getServiceTypeDetail(id) {
  return request({
    url: `classification/serviceType/${id}`,
    method: 'get',
  });
}